import React from 'react'
import { HashRouter as Router, Switch, Route } from "react-router-dom";
import './App.css';

//App.jsx高阶封装
import FrontendAuth from "./FrontendAuth/FrontendAuth";
//全局路由配置表
import router from "./Router/router";


// import Login from "./views/Login.jsx";
// import Home from "./views/Home.jsx";
// import Register from "./views/Register.jsx";
// import ErrorPage from "./404/404";


function App() {
  return (
    // 路由与组件之间的关系
    <Router>
      {/* 切换组件 */}
      <Switch>
        {/* <Route  path="/home">
              <Home />
            </Route>
            <Route  path="/errorPage">
              <ErrorPage />
            </Route>
            <Route  path="/register">
              <Register />
            </Route>
            <Route  path="/">
              <Login />
            </Route>               */}
        <FrontendAuth router={router} />
      </Switch>
    </Router>
  )
}

export default App


/*
//安全性问题
1. XSRF 攻击 --请求数据一种攻击方式

2. Sql注入攻击 --数据库

3.XSS攻击 --页面中有输入框一种攻击方式
*/





